﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using LordJS.Models;

namespace LordJS.Controllers
{
    public class PageController : Controller
    {
        public ActionResult GoTo(string category, string module, string page)
        {
            String path = "/Views/" + category + "/" + module + "/" + page + ".cshtml";
            ViewBag.Path = path;
            ViewBag.PageTitle = page;

            return View(path);
        }
    }
}
